<?php
/**
 * config.php           配置文件
 * 
 * @author              mashanling(msl-138@163.com)
 * @date                2012-03-16 16:46:07
 * @last modify	        2012-03-16 16:46:07 by mashanling
 */

!defined('ROOT') && exit('Access Denied');

define('TIME_START'            , $_SERVER['REQUEST_TIME']);   //开始执行时间戳
define('TIME_START_MICRO'      , microtime(true));            //开始执行时间
define('TIME_DIFF'             , 28800);                      //与格式尼治时间戳相差秒数
define('TIMEZONE_DEFAULT'      , 'asia/shanghai');            //默认时区
define('TIMEZONE_USA'          , 'America/Whitehorse');       //美国白宫时区
define('DATE_FORMAT'           , 'Y-m-d H:i:s');              //时间格式

define('DB_HOST'               , 'localhost');    //数据库主机名
define('DB_USER'               , 'root');         //数据库用户名
define('DB_PWD'                , '');             //数据库密码
define('DB_NAME_TEST'          , 'test');         //test数据库名称
define('TB_TEST'               , 'tb_test');      //tb_test表
define('TB_KEYWORDS'           , 'tb_keywords');  //tb_keywords表

define('FTP_HOST'              , 'localhost');    //FTP主机
define('FTP_USER'              , 'anonymous');    //FTP用户名
define('FTP_PWD'               , '');             //FTP密码

define('IS_LOCAL'              , true);                       //是否本地
define('HOSTNAME'              , 'thinkphp.mrmsl.com');       //域名
define('WEBSITE'               , 'http://' . HOSTNAME . '/'); //网站地址
define('IP_LOCALHOST'          , '127.0.0.1');                //本地ip地址
define('IP_SMTP_163'           , '123.125.50.133');           //163 smtp ip地址
define('IP_SMTP_QQ'            , '112.90.141.71');            //qq smtp ip地址
define('EOL_CR'                , "\r");                       //回车
define('EOL_LF'                , "\n");                       //换行
define('EOL_CRLF'              , EOL_CR . EOL_LF);            //回车换行
define('CRLF'                  , EOL_CRLF);                   //回车换行
define('AGENT_FIREFOX_10'      , 'User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/10.0.1');
define('AGENT_FIREFOX_9'       , 'User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1');
define('AGENT_FIREFOX'         , AGENT_FIREFOX_10);
define('AGENT_MSIE_8'          , 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 1.1.4322; CIBA)');
define('AGENT_MSIE_6'          , 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 1.1.4322; CIBA)');
define('AGENT_CHROME'          , 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7');
define('AGENT_SAFARI'          , 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7');
define('AGENT_OPERA'           , 'Opera/9.80 (Windows NT 5.1; U; zh-cn) Presto/2.10.229 Version/11.60');

define('CACHE_PATH'            , APP_PATH . 'cache/');                //缓存目录路径
define('RESOURCES_PATH'        , APP_PATH . 'resources/');            //资源目录路径
define('LOG_PATH'              , APP_PATH . 'logs/');                 //日志目录路径
define('LOG_FILE'              , LOG_PATH . date('Ymd') . '.log');//日志文件名
?>